﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Reflection;

namespace Test_FinPlusUtility
{
    using u = FinPlusUtility.Utility;
    using NUnit.Framework;

    [TestFixture]
    public static class FinPlusTest
    {

        [Test]
        public static void Test1()
        {
            var t = @"123$ABC;456$EFG";
            var a = u.StringToArray2d(t);
            var s = u.StringFromArray2d((object[,])a);
            Assert.AreEqual(t, s);
        }

        [Test]
        public static void Test2()
        {
            var t = @"123%ABC";
            var a = u.StringToArray1d(t);
            var s = u.StringFromArray1d((object[])a);
            Assert.AreEqual(t, s);
        }
    }
}
